import java.io.*;
import java.util.*;
/**
 * This is a TruckTester class that contains main method. It creates a Truck object and calls all the methods that are in it.
 *	it calls the methods that read truck information, load the truck, drive and unload the truck. Also calls the method
 * that prints out the final information about what packages got dilivered.
 *
 * <p><b>
 * Extra Credit:
 * </b><pre>
 * No extra credit was offered on this assignment
 * </pre><b>
 *
 * History:
 * </b><pre>
 * 5/04/2007 started writing the program
 * 5/08/2007 continued working on it
 * 5/09/2007 finished writing the program
 * </pre>
 *
 * @author  Veniamin Kozubenko
 * @see     "No Borrowed Code" 
 *     	
 */
 
public class TruckTester
{

	public static void main(String [] args) throws IOException
	{
		Scanner fin = new Scanner(new File("manifest.txt"));
		PrintWriter fout = new PrintWriter(new File("log.txt"));
		Truck truck = new Truck();
		
		truck.readDriverInfoAndNumberOfPackages(fin, fout);
		truck.loadTruckWithPackages(fin, fout);
		truck.driveTruck(fout);
		truck.unloadPackages(fout);
		truck.finalTruckInformation(fout);
		fin.close();
		fout.close();
	} // End main method
	
} // End class Truck